Learn Docker - Fundamentals of Docker 19.x by Gabriel N. Schenker

Learn Docker - Fundamentals of Docker 19.x by Gabriel N. Schenker

Author:Gabriel N. Schenker [Gabriel N. Schenker]
Language: eng
Format: epub, mobi
Tags: COM088020 - COMPUTERS / System Administration / Windows Administration, COM046050 - COMPUTERS / Operating Systems / Windows Server, COM051440 - COMPUTERS / Software Development and Engineering / Tools
Publisher: Packt Publishing
Published: 2020-03-13T08:25:45+00:00


The Containers section of the output of the Docker network inspect bridge

Once again, we have shortened the output to the relevant part for readability.

Now, let's create two additional containers, c3 and c4, and attach them to test-net. For this, we'll use the --network parameter:

$ docker container run --name c3 -d --network test-net \

alpine:latest ping 127.0.0.1

$ docker container run --name c4 -d --network test-net \

alpine:latest ping 127.0.0.1

Let's inspect network test-net and confirm that containers c3 and c4 are indeed attached to it:

$ docker network inspect test-net

This will give us the following output for the Containers section:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.